package com.fc.service;

import com.fc.mapper.RechargeLogMapper;
import com.fc.model.RechargeLog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yukai on 2017/3/10.
 */
@Service
public class RechargeLogService {
    @Autowired
    private RechargeLogMapper rechargeLogMapper;


    public void save(RechargeLog log) {
        rechargeLogMapper.insertRechargeLog(log);
    }

    public void updateLog(RechargeLog log) {
        rechargeLogMapper.updateLog(log);
    }

    public RechargeLog findByOrderNo(String orderNo) {
        return rechargeLogMapper.findByOrderNo(orderNo);
    }

    public List<RechargeLog> listAllByUId(int uId) {
        return rechargeLogMapper.listAllByUId(uId);
    }
}
